<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PyfntbactcreqEditDlg" widgetVar="PyfntbactcreqEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditPyfntbactcreqTitle}">

            <h:form id="PyfntbactcreqEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{pyfntbactcreqController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditPyfntbactcreqLabel_pyfntbactcreqid}" for="pyfntbactcreqid" />
                        <h:outputText id="pyfntbactcreqid" value="#{pyfntbactcreqController.selected.pyfntbactcreqid}" />

                        <p:outputLabel value="#{myBundle.EditPyfntbactcreqLabel_pytctbactcompid}" for="pytctbactcompid" />
                        <p:selectOneMenu id="pytctbactcompid" value="#{pyfntbactcreqController.selected.pytctbactcompid}" required="true" requiredMessage="#{myBundle.EditPyfntbactcreqRequiredMessage_pytctbactcompid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pytctbactcompController.items}"
                                           var="pytctbactcompidItem"
                                           itemValue="#{pytctbactcompidItem}"
                                           itemLabel="#{pytctbactcompidItem.descripcion.toString()}"
                                           />
                            <f:converter binding="#{pytctbactcompConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditPyfntbactcreqLabel_pyfntbrequerid}" for="pyfntbrequerid" />
                        <p:selectOneMenu id="pyfntbrequerid" value="#{pyfntbactcreqController.selected.pyfntbrequerid}" required="true" requiredMessage="#{myBundle.EditPyfntbactcreqRequiredMessage_pyfntbrequerid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbrequerController.items}"
                                           var="pyfntbrequeridItem"
                                           itemValue="#{pyfntbrequeridItem}"
                                           itemLabel="#{pyfntbrequeridItem.pyfntbrequerid.toString()}"
                                           />
                            <f:converter binding="#{pyfntbrequerConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pyfntbactcreqController.save}" value="#{myBundle.Save}" update="display,:PyfntbactcreqListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PyfntbactcreqEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PyfntbactcreqEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
